package com.big.app.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import com.big.app.dao.StoreMapDao;
import com.big.app.entity.StoreMap;
import com.big.app.service.intf.StoreMapService;
import com.big.app.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: zjl
 * @description
 * @date: 2022/4/23 16:41
 */
@Service
public class StoreMapServiceImpl implements StoreMapService {
    @Autowired
    private StoreMapDao storeMapDao;
    @Override
    public R selectAll(Integer mid) {
        if (storeMapDao.selectList(new QueryWrapper<StoreMap>().eq("mid",mid))!=null){
            return new R(200,"ok",storeMapDao.selectList(new QueryWrapper<StoreMap>().eq("mid",mid)));
        }
        return new R(400,"fail",null);
    }
}
